﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EMSClient.CForm.Uc
{
    public partial class UcJianCe : UserControl
    {
        public UcJianCe()
        {
            InitializeComponent();
        }
        public UcJianCe(string title, string val)
        {
            InitializeComponent();

            this.label1.Text = title;
            this.label2.Text = val;
        }

        private void label2_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(e.Graphics, label2.ClientRectangle,
                          Color.DimGray, 1, ButtonBorderStyle.None, //左边
　　　　　                Color.DimGray, 1, ButtonBorderStyle.None, //上边
　　　　　                Color.DimGray, 1, ButtonBorderStyle.Solid, //右边
　　　　　                Color.DimGray, 1, ButtonBorderStyle.Solid);//底边

        }

        private void label1_Paint(object sender, PaintEventArgs e)
        {
            ControlPaint.DrawBorder(e.Graphics, label2.ClientRectangle,
                      Color.DimGray, 1, ButtonBorderStyle.None, //左边
                 Color.DimGray, 1, ButtonBorderStyle.None, //上边
                 Color.DimGray, 1, ButtonBorderStyle.Solid, //右边
                 Color.DimGray, 1, ButtonBorderStyle.Solid);//底边
        }
    }
}
